package com.elong.aos;

import java.util.HashMap;
import java.util.Map;

import com.elong.common.http.FluentHttpUtil;
import com.elong.common.http.HttpResult;


public class AOSUtil {

    
    public static  void loginAOS(){
	FluentHttpUtil httpUtil = FluentHttpUtil.getInstance();
	String url = "http://home.corp.elong.com/home/Site/Login";
	Map<String, String> inputParams = new HashMap<String, String>();
	inputParams.put("user", "dan.zhao");
	inputParams.put("password", "Mrz367Java@3");
	HttpResult result = httpUtil.URLPost(url, inputParams);
	httpUtil.URLGet("http://aos.corp.elong.com/sag/Aos/Index", null);
	    HttpResult result1 = httpUtil.URLGet("http://aos.corp.elong.com/apus_web/ConfItem/Index?page=2&nodeId=36822", null);
	    System.out.println(result1.getRetContent());
    }
    
    public static void main(String[] args) {
	AOSUtil.loginAOS();
    }

}
